﻿<%@ Page Language="C#" MasterPageFile="~/AdminZone/AdminMaster.master" AutoEventWireup="true" CodeFile="MemberManagement.aspx.cs" Inherits="AdminZone_MemberManagement" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
 <div id="toolbar-box">
        <div class="m">
            <div class="pagetitle icon-adminInfo">
                <h2>
                    Quản lý thành viên</h2>
            </div>
        </div>
    </div>
    <div id="element-box">
        <div class="m">
            <div class="width-100">
                <fieldset class="adminform">
                    <legend>Quản lý thành viên</legend>
                    <table style="width: 900px" cellpadding="4" cellspacing="2">
                        <tr>
                            <td align="right">
                                Full Name:
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtFullName" runat="server" Width="150"></asp:TextBox>
                            </td>
                            <td>
                            </td>
                        </tr>
                        <tr>
                            <td>
                            </td>
                            <td colspan="2" align="left">
                                <asp:Button ID="btnSearch" runat="server" Text="Search" OnClick="btnSearch_Click" class="button"/>
                                <asp:Button ID="btnReset" runat="server" Text="Clear" OnClick="btnReset_Click" class="button"/>
                                <asp:Button ID="btnInsert" runat="server" Text="Insert" OnClick="btnInsert_Click" class="button"/>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left">
                                <asp:Label ID="lblResult" runat="server" Font-Bold="True" ForeColor="Red"></asp:Label>
                            </td>
                            <td colspan="2" style="text-align: right">
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left">
                            </td>
                            <td class="left" colspan="2" style="text-align: left">
                                <asp:Label ID="lblError" runat="server" Font-Bold="True" ForeColor="Red"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3" style="height: 399px" valign="top" align="center">
                                <asp:GridView ID="gvSearch" runat="server" CellPadding="3" ForeColor="Black" AutoGenerateColumns="False"
                                    GridLines="Vertical" Width="1087px" AllowPaging="True" OnPageIndexChanging="gvSearch_PageIndexChanging"
                                    PageSize="15" BackColor="White" BorderColor="#999999" BorderStyle="Solid" 
                                    BorderWidth="1px">
                                    <FooterStyle BackColor="#CCCCCC" />
                                    <RowStyle Height="25" />
                                    <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
                                    <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                                    <HeaderStyle BackColor="Black" Font-Bold="True" Height="30" ForeColor="White" />
                                    <AlternatingRowStyle BackColor="#CCCCCC" />
                                    <Columns>
                                        <asp:TemplateField HeaderText="Delete">
                                            <HeaderTemplate>
                                                <input type="checkbox" onclick="checkAll(this,'checkDel');" />
                                            </HeaderTemplate>
                                            <ItemTemplate>
                                                <input type="checkbox" name="checkDel" value='<%# Eval("MemberID") %>' />
                                            </ItemTemplate>
                                            <ItemStyle HorizontalAlign="Center" />
                                            <HeaderStyle HorizontalAlign="Center" />
                                        </asp:TemplateField>
                                        <asp:BoundField DataField="MemberID" HeaderText="MemberID">
                                            <ItemStyle HorizontalAlign="center" />
                                        </asp:BoundField>
                                        <asp:HyperLinkField HeaderText="Account" DataNavigateUrlFormatString="~/AdminZone/MemberDetails.aspx?id={0}"
                                            DataNavigateUrlFields="MemberID" DataTextField="UserName">
                                            <HeaderStyle HorizontalAlign="left" />
                                            <ItemStyle HorizontalAlign="Left" />
                                        </asp:HyperLinkField>
                                        <asp:BoundField DataField="FullName" HeaderText="FullName">
                                            <HeaderStyle HorizontalAlign="left" />
                                            <ItemStyle HorizontalAlign="Left" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="Email" HeaderText="Email" />
                                        <asp:BoundField DataField="Birthday" HeaderText="Birthday" />
                                        <asp:BoundField DataField="Address" HeaderText="Address">
                                            <ControlStyle Width="200px" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="RegDate" HeaderText="Register Date" />
                                        <asp:HyperLinkField HeaderText="Edit" DataNavigateUrlFormatString="~/AdminZone/MemberDetails.aspx?id={0}"
                                            DataNavigateUrlFields="MemberID" Text="Edit">
                                            <HeaderStyle HorizontalAlign="left" />
                                            <ItemStyle HorizontalAlign="Left" />
                                        </asp:HyperLinkField>
                                    </Columns>
                                </asp:GridView>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left">
                                <asp:Button ID="btnDelete" runat="server" Text="Delete" Width="56px" OnClientClick="return isChecked('checkDel');"
                                    ToolTip="Click here to delete items" OnClick="btnDelete_Click" />
                            </td>
                            <td class="left" colspan="2" style="text-align: right">
                            </td>
                        </tr>
                    </table>
                    <div class="clr" />
            </div>
        </div>
        </fieldset>
    </div>

    <script src="../Js/Common.js" type="text/javascript"></script>
</asp:Content>

